package com.lizardmind.haofudoctor.ui.aboutMe

import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.OnLifecycleEvent
import android.databinding.ObservableField
import com.linxiao.framework.util.ke
import com.linxiao.framework.viewModel.LifecycleViewModel
import com.lizardmind.haofudoctor.other.DoctorInfo

/**
 *  关于我 viewmodel
 * Created by Extends on 2017/10/13 17:52
 */
class AboutMeVM: LifecycleViewModel() {
    var img = ObservableField<String>(DoctorInfo.head_img)
    var name = ObservableField<String>(DoctorInfo.name)
    var hospital_name = ObservableField<String>(DoctorInfo.hospital_name)

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun updata(){
        img.set(DoctorInfo.head_img)
        name.set(DoctorInfo.name)
        hospital_name.set(DoctorInfo.hospital_name)
    }
}